Skip to content

Keep Wallet spend-rule redirects scoped to the card workspace - #106098

Closed
MelvinBot wants to merge 4 commits into
mainfrom
claude-walletSpendRulesWorkspaceScope
Closed

MelvinBot wants to merge 4 commits into
mainfrom
claude-walletSpendRulesWorkspaceScope

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

When Edit spend rules redirects from Wallet to another workspace's More features page, switching tabs must not reuse the previously opened workspace's sidebar. Check the destination split's scope and use normal navigation when it differs, preserving the existing modal-pop guards and same-scope tab switching.

Add two regression cases covering Account-to-Workspaces redirects with and without an underlying Workspaces tab navigator. Both assert that the sidebar and More features belong to the card's workspace.

AI Tests

Unknown destination scope after browser Back — 2026-11-16

  • Added the requested root REPLACE fallback when the active split is missing and the requested split supplies a sidebar scope value. Known matching scopes and unscoped destinations still use tab switching; removal guards are unchanged.
  • Added regressions for missing live/preserved workspace and domain state, plus matching-scope and unscoped tab switching. Both unknown-scope cases failed with JUMP_TO before the implementation; all 44 GoBack tests pass afterward. These simulate the rebuilt state, not browser history itself.
  • Passed: typecheck, explicit changed-file lint, explicit changed-file spelling, Storybook smoke test, whitespace check, and pre-commit Oxfmt formatting.
  • Full lint and full Jest each timed out after three minutes; Jest passed 22 suites before the limit. Neither is reported as complete.
  • Changed-file discovery was blocked by missing merge-base history in the shallow checkout; fetching deeper history timed out. Review used the full PR diff plus this staged change and found no violations.
  • The matrix's prettier script is absent; direct formatter check was denied, but the configured pre-commit formatter completed successfully.
  • Web verification blocked: suspended browser session and zero UI nodes. The actual browser-Back/retry sequence remains unverified.

Blocked browser state with no accessible app UI

Backward-navigation review fix — 2026-11-12

  • Replaced the forward-navigation fallback with a guarded root REPLACE, so changing workspace scope does not push the redirect origin onto history.
  • Strengthened both workspace redirect regression cases to assert one root tab, one workspace split, no PUSH, and Back staying in workspace A. The new stack-length assertion reproduced the original bug before the fix.
  • Passed: all 39 GoBack tests, typecheck, changed-file lint, explicit two-file lint, changed-file spelling, Storybook smoke build, whitespace check, and staged coding review (no violations).
  • Full lint timed out after three minutes. Full Jest passed 26 suites before the three-minute limit; incomplete, not reported as passing. The unrelated WorkspaceMembers CI failure and human checklist gates were not modified.
  • Formatting command unavailable: no prettier npm script.
  • Web verification blocked by a blank app; card fixtures could not be inspected, and the end-to-end redirect remains unverified.

Blank app page during backward-navigation verification

Main merge — 2026-11-12

  • Merged main at 0f60fbcf7c73b122d9d437cdd818fb052d155ced; resolved the sole import conflict by retaining both navigation-state helpers. Staged coding review found no violations.
  • Passed: lint for the two PR files and PR-only diff whitespace check.
  • Blocked: focused GoBack tests and Storybook compilation could not resolve @formatjs/intl-datetimeformat. Full Jest encountered the same dependency errors and timed out after two minutes.
  • Typecheck and changed-file lint failed on missing main-branch dependencies, including expo-glass-effect, FormatJS and Appduct packages. Full lint timed out after two minutes. Changed spelling included main's files and reported 33 issues in 9 files.
  • Formatting command unavailable: no prettier npm script.
  • Web verification failed at app opening: blank page, no login controls; workspace/card regression untested. No fixtures fabricated.

Blank dev NewDot web page after main merge

Original implementation checks (before main merge)

  • Passed: npm test -- --silent --runInBand tests/navigation/GoBackTests.tsx (39 tests, including both new regression cases).
  • Passed: full lint, changed-file lint, typecheck, changed-file spelling, Storybook smoke test, and git diff --check.
  • Staged-diff coding review: no violations found.
  • Full Jest suite attempted twice; exceeded 5-minute and 15-minute execution limits without completing. The broader navigation-only run also exceeded its execution limit. These runs are incomplete, not reported as passing.
  • Formatting: the matrix's npm run prettier -- --log-level error cannot run because this checkout has no prettier script; direct Oxfmt check invocation was denied by the execution policy.
  • React Compiler check could not resolve origin/ in this environment. No components or hooks were changed.
  • Web UI verification blocked: workspace creation did not complete, and Wallet could not be reached through available selectors. Card redirect, Rules toggling, and persistence remain unverified. The screenshot records the blocker, not successful verification.

Account Profile with Wallet visible but inaccessible to selectors

Fixed Issues

$ #103751
PROPOSAL: #103751 (comment)

Tests

// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review"
// Please describe what tests you performed that validates your changed worked.

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review".
// Please describe what QA needs to do to validate your changes and what areas do they need to test for regressions.

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified any copy / text that was added to the app is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
@MelvinBot
MelvinBot requested review from a team as code owners November 5, 2026 12:51
@melvin-bot melvin-bot Bot added Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web labels Nov 5, 2026
@melvin-bot
melvin-bot Bot requested review from Pujan92 and removed request for a team November 5, 2026 12:51
@melvin-bot

melvin-bot Bot commented Nov 5, 2026

Copy link
Copy Markdown

@Pujan92 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot
melvin-bot Bot requested review from twisterdotcom and removed request for a team November 5, 2026 12:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T12:56:02.698483Z b3d3f4a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

I created this PR from an upstream branch because I don't have push access to Pujan92's fork. It is ready for review and assigned to Pujan92.

To take ownership of the branch in your fork:

git remote add upstream https://github.com/Expensify/App.git
git fetch upstream claude-walletSpendRulesWorkspaceScope
git checkout -b claude-walletSpendRulesWorkspaceScope upstream/claude-walletSpendRulesWorkspaceScope
git push -u origin claude-walletSpendRulesWorkspaceScope

You can then close this PR and open one from your fork if needed.

@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/libs/Navigation/Navigation.ts 72.76% <94.44%> (+11.67%) ⬆️
... and 1135 files with indirect coverage changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b3d3f4a698

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/libs/Navigation/Navigation.ts Outdated
const splitPayload = destinationStack ? getNestedAction(minimalAction, destinationStack).payload : undefined;
// jumpTo reuses the mounted split, so another workspace would keep the old sidebar. navigate creates a split with the requested scope instead.
if (activeSplit && splitPayload && isNamedActionPayload(splitPayload) && hasDifferentSplitScope(activeSplit, splitPayload)) {
navigate(backToRoute);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid pushing history from a goBack redirect

When the destination workspace has a different scope, calling the forward-navigation API here changes goBack into a PUSH: linkTo pushes a new TAB_NAVIGATOR for the no-underlying-tab fixture and pushes a sibling workspace split when the underlying tab was uncovered. Consequently this redirect adds a browser/native history entry and leaves the Account/workspace-B route beneath workspace A, so Back returns to the route that initiated the disabled-feature redirect instead of unwinding it. Keep the scope correction within goUp using replacement/back-navigation semantics rather than calling navigate().

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot lets fix this

@MelvinBot MelvinBot Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Web test steps verification results: ❌ fail

Dev NewDot web remained blank, so the card-routing scenario could not be reached. Pushed 8fdca93, replacing forward navigation with guarded replacement; all 39 navigation tests, typecheck, changed-file lint/spelling, and Storybook passed, while full lint/Jest timed out.

Blank app page

Step Status
App opensTwo snapshots returned no nodes; waiting for Inbox timed out.
Blank app page
❌
Workspace B → Wallet → workspace A card → Edit spend rules; A sidebar and More features; Back behaviorBlocked by the blank app. Existing card fixtures could not be inspected; none were fabricated.
❌

view run · no recording available

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot It seems not to be working the second time when we browser back to the wallet again.

Wallet -> Spend -> Correct workspace -> Back until wallet again -> again spend -> navigates to other workspace

@MelvinBot MelvinBot Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Web test steps verification results: ⚠️ partial

The test account has no workspaces or cards, so the browser-Back/retry sequence could not be reproduced. Existing tests pass but omit that round trip; no speculative fix was pushed—a two-workspace/card fixture is needed to verify the second redirect.

Workspaces screen showing No workspaces yet

Step Status
Existing workspace/card prerequisitesWorkspaces displayed “No workspaces yet”; neither workspace nor the required card was available.
Workspaces screen showing No workspaces yet
❌
Wallet is reachableNot established: Account opened Profile, with no Wallet entry in captured navigation.
❌
First redirect → browser Back to Wallet → second redirectBlocked by missing fixtures. Code tracing did not establish whether the second attempt requests the wrong workspace or restores stale navigation state; neither explanation is confirmed.
❌

view run · view recording

@MelvinBot

MelvinBot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Web test steps verification results: ⚠️ partial

Completed onboarding and created Workspace B on dev NewDot web. The required Workspace A/card fixture was absent, and Wallet was unavailable in Account; the spend-rule regression could not be tested.

Account state blocking the Wallet card flow

Step Status
1. Open the appUsed the provided dev Web session and completed onboarding.
Dev Web app with Workspace B open
✅
2. Create Workspace B without an Expensify CardInitially, Workspaces showed “No workspaces yet”. Created Workspace B and verified its heading. No card was issued or fabricated.
Newly created Workspace B
✅
3. From Workspace B, open Account > WalletOpened Account from B. Wallet was absent from interactive and full snapshots, and its visibility check did not match.
Account Profile with Wallet unavailable
⚠️
4. Workspace A card > Edit spend rules targets ABlocked: Workspace A and its required issued card were absent. Wallet was also unavailable.
Account state blocking the Wallet card flow
⚠️
5. Enable Rules and verify A’s sidebarBlocked by the missing Workspace A/card fixture; Rules were not changed.
⚠️
6. Verify Rules persists after navigating away and returningBlocked: could not reach or enable Rules for Workspace A.
⚠️
7. Reopen A; verify Rules enabled and B unchangedBlocked: Workspace A was absent, so cross-workspace scope could not be verified.
⚠️
8. Verify no JavaScript console errorsUnverified: the supported testing interface does not expose JavaScript console inspection.
⚠️

view run · view recording

@MelvinBot

MelvinBot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Android test steps verification results: ⚠️ partial

Recovered sign-in and opened standalone Android NewDot. Required Workspace A/Card fixture was unavailable: Workspaces showed “No workspaces yet”; no fixture data was fabricated.

No workspaces yet; prerequisite unavailable

Step Status
1. Open appConfirmed app foreground, completed recovery/onboarding, and reached Workspaces.
Signed-in Android Workspaces screen
✅
2. Create Workspace B without a CardRequired Workspace A was absent. Stopped before creating an incomplete substitute scenario.
No workspaces yet; prerequisite unavailable
⚠️
3. From B, open Account > WalletB was not created because the required fixture was unavailable.
⚠️
4. A’s Card > Edit spend rules targets ANo Workspace A or issued Card was available.
⚠️
5. Enable Rules and verify A’s sidebarRequired Workspace A/Card navigation could not be exercised.
⚠️
6. Rules remains enabled after returningRules could not be enabled on the missing fixture.
⚠️
7. A enabled and B unchangedRequired two-workspace state was unavailable.
⚠️
8. No JavaScript console errorsApp log capture was inactive and empty; console cleanliness is unverified.
⚠️

view run · view recording

@twisterdotcom

Copy link
Copy Markdown
Contributor

Looks good from a product perspective.

twisterdotcom
twisterdotcom previously approved these changes Nov 6, 2026
@carlosmiceli

Copy link
Copy Markdown
Contributor

@Pujan92 is thiss ready?

@Pujan92

Pujan92 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Not yet, reviewing it.

@Pujan92

Pujan92 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot merge main and fix conflict

Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
@MelvinBot

MelvinBot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Web test steps verification results: ❌ fail

Merged main, resolved the import conflict, and pushed f723186; GitHub confirms no merge conflicts remain. Web verification was blocked by a blank app; targeted lint passed, but broader checks encountered missing dependencies, timeouts, and unrelated spelling errors.

Blank dev NewDot web page

Step Status
App opensPage remained blank; login controls were unavailable.
Blank dev NewDot web page
❌
Wallet > Edit spend rules targets workspace A after workspace BBlocked, not tested: the blank app prevented authentication and inspection of existing card fixtures.
❌

view run · no recording available

@MelvinBot

Copy link
Copy Markdown
Contributor Author

⚠️ Something went wrong. This may be a transient issue. Try again. If it persists, check status.openai.com.

Run details

@MelvinBot

Copy link
Copy Markdown
Contributor Author

The failing Jest check is unrelated to this PR’s Wallet navigation changes.

  • WorkspaceMembersTest.tsx:289 expects exactly one “New” badge, but both Approve Only and Guest receive one.
  • The test and badge implementation are unchanged from merged main. A focused test run reproduced the same failure.
  • The remaining failures are checklist/independent-approval gates requiring human completion.

No changes pushed: fixing this inherited test failure would be outside this PR’s scope.


view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Rechecked: the only failing code check is still the same Jest failure.

WorkspaceMembersTest.tsx:289 expects one “New” badge, but both Approve Only and Guest have one. This mismatch is inherited from main, unrelated to this PR’s navigation changes.

No fix pushed because unrelated test failures must be addressed separately. The other failing checks require human checklist completion and independent approval.


view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

The checks are unchanged. The Jest failure comes from WorkspaceMembersTest.tsx:289: it expects one “New” badge, but two roles display it.

This failure is inherited from main, not caused by this PR. No changes pushed; that test needs a separate fix. Checklist completion and independent approval also remain outstanding.


view run

Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
@MelvinBot

Copy link
Copy Markdown
Contributor Author

⚠️ Something went wrong. This may be a transient issue. Try again. If it persists, check status.openai.com.

Run details

Pujan92

This comment was marked as outdated.

@melvin-bot
melvin-bot Bot requested a review from carlosmiceli November 13, 2026 20:32

@Pujan92 Pujan92 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By mistake approved! still in review

@Pujan92
Pujan92 self-requested a review November 13, 2026 20:35
@MelvinBot

Copy link
Copy Markdown
Contributor Author

Understood—the approval was accidental. Your latest review is “Changes requested”; no code changes are needed for this clarification.


view run

@Pujan92

Pujan92 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot The issue persists when you back to wallet again with browser back button and try to open edit spend rules.

Condition: Card is in workspace A

  1. Open workspace B
  2. Goto wallet -> Card -> Edit spend rules
  3. It naivgates to workspace A correctly
  4. Go back until wallet screen with browser back button
  5. Card -> Edit spend rules
  6. Navigates to workspace B
Screen.Recording.2026-11-16.at.19.20.51.mov

@MelvinBot

MelvinBot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Web test steps verification results: ❌ fail

Blocked on dev NewDot web: the supplied account shows “No workspaces yet,” so the required workspace/card fixtures are unavailable. The existing tests omit the browser-Back/retry sequence; the second redirect remains unverified, and no speculative fix was pushed.

Workspaces page showing No workspaces yet

Step Status
1. Open workspace BWorkspaces displays “No workspaces yet”; B cannot be opened.
Workspaces page showing No workspaces yet
❌
2. Wallet → A’s card → Edit spend rulesBlocked by missing workspace/card fixtures; not executed.
❌
3. First redirect shows workspace ABlocked; sidebar and content could not be verified.
❌
4. Browser Back until WalletBlocked; card flow not reached.
❌
5. Same card → Edit spend rules againBlocked; second attempt not reached.
❌
6. Second redirect shows A, not BUnverified. A test account with both workspaces and an existing card in A is needed to reproduce this sequence.
❌

view run · view recording

@Pujan92

Pujan92 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot I debugged the second attempt locally. After browser Back, destinationStack, activeSplit and the preserved state for the Workspaces tab route are all undefined. Back rebuilds the state, so the tab route has no nested state and no preserved entry under its key. The scope check is skipped, jumpTo runs, and the tab restores workspace B.

Please treat an unknown scope as different when the target is a scoped split. If activeSplit is undefined and jumpParams targets a split navigator whose sidebar has scope params (e.g. WORKSPACE_SPLIT_NAVIGATOR with policyID), use the same root REPLACE as the different-scope branch instead of jumpTo.

Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
@MelvinBot

MelvinBot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Web test steps verification results: ❌ fail

Pushed 827be331: unknown scoped destinations now use root REPLACE, with all 44 GoBack tests, typecheck, targeted lint/spelling, and Storybook passing; full lint/Jest timed out. Browser verification remains blocked by a suspended session with no accessible UI, so the actual Back/retry sequence is unverified.

Blocked browser state with no accessible app UI

Step Status
1. Open workspace BBlocked: no accessible app UI; existing fixtures could not be confirmed.
Blocked browser state with no accessible app UI
⚠️
2. Wallet → A’s card → Edit spend rulesUnexecuted: Wallet and card fixtures were inaccessible.
⚠️
3. First redirect shows A in both panesUnexecuted: first redirect could not be reached.
⚠️
4. Browser Back until WalletUnexecuted: prerequisite navigation was blocked.
⚠️
5. Same card → Edit spend rules againUnexecuted: return-to-Wallet state was unavailable.
⚠️
6. Second redirect shows A, not BUnexecuted: browser behavior remains unverified. Regression tests cover the missing-state condition you identified.
⚠️

view run · no recording available

@MelvinBot

Copy link
Copy Markdown
Contributor Author

⚠️ Something went wrong. This may be a transient issue. Try again. If it persists, check status.openai.com.

Run details

@Pujan92

Pujan92 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@WojtekBoman Could you take a look at this PR's change in goUp? It builds on hasDifferentSplitScope from your #101180. Considering it is a navigation change, I think it is safer if you can take a look at these changes.

@WojtekBoman

Copy link
Copy Markdown
Contributor

@Pujan92 Sure! I'll check it out 👁️

@WojtekBoman

Copy link
Copy Markdown
Contributor

Hey @Pujan92, I put together a draft PR that polishes this fix a bit #107263

What's different:

  • Only the Workspaces split is replaced, not the whole tab navigator, so the other tabs keep their state.
  • The workspaces list stays under the new split, so Back from the sidebar returns to the list instead of Home.
  • Other cross-tab goBack calls behave like on main.
  • Reuses the existing scope check (getMinimalAction) instead of parsing params by hand.
  • Fixes an untargeted pop that, on wide layout, popped a Settings page instead of the covering tab navigator.

Tested on web, including your browser Back retry case. Let me know what you think!

@Pujan92

Pujan92 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Thanks @WojtekBoman, I will check!

@Pujan92

Pujan92 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Closing in favor of #107263

@Pujan92 Pujan92 closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants